<%@page import="com.zch.news.entity.News"%>
<%@page import="com.zch.news.service.impl.NewsServiceImpl"%>
<%@page import="com.zch.news.service.NewsService"%>
<%@ page language="Java" contentType="text/html;charset=UTF-8" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head> 
    <title>title is here</title>        
  <meta http-equiv="content-Type" content="text/html;charset=utf-8"> 
  <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  <meta http-equiv="description" content="this is a page">
  <link rel="stylesheet" href="./css/..." type="text/css">
  <script language="javascript" type="text/javascript" src="./js/..."></script> 
 </head>
 <body>
 <%
 	String no = request.getParameter("newsNo");
 	int no2 = Integer.parseInt(no);
 	NewsService ns = new NewsServiceImpl();
 	News news = ns.getNewsByNo(no2);
 %>
 	<form action="NewsServlet?method=updateNews" method="post">
 	编号：<input type="number" name="newsNo" value="<%=news.getNo() %>" readonly="readonly">
 	标题：<input type="text" name="title" placeholder="<%=news.getTitle() %>" autofocus="autofocus"><br>
	内容：<textarea rows="10" name="content" placeholder="<%=news.getContent() %>"></textarea>
	作者：<input type="text" name="author" placeholder="<%=news.getAuthor() %>"><br>
	创建日期：<input type="text" name="createTime" placeholder="<%=news.getCreatTime() %>"><br>
	<input type="reset" value="重置">&nbsp;&nbsp;&nbsp;&nbsp;
	<input type="submit" value="更新">
	</form>
 </body>
</html>